import request from '@/utils/request'

// 获取课程得分列表
export function getStudentCourseScores(params) {
  return request({
    url: '/course-score',
    method: 'get',
    params
  })
}

// 添加课程得分
export function createCourseScore(data) {
  return request({
    url: '/course-score',
    method: 'post',
    data
  })
}

// 更新课程得分
export function updateCourseScore(data) {
  return request({
    url: `/course-score/${data.id}`,
    method: 'put',
    data
  })
}

// 删除课程得分
export function deleteCourseScore(id) {
  return request({
    url: `/course-score/${id}`,
    method: 'delete'
  })
} 